﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ubcon="clr-namespace:UBConDemo">
    
    <DataTemplate x:Key="{ComponentResourceKey ResourceId=ControlHeaderTemplate, TypeInTargetAssembly={x:Type ubcon:ResourceManager}}">
        <TextBlock Text="{Binding Path=Title, NotifyOnSourceUpdated=True}" 
                   VerticalAlignment="Bottom"
                   Margin="0,0,0,3"/>
    </DataTemplate>

    <DataTemplate x:Key="{ComponentResourceKey ResourceId=ControlContentTemplate, TypeInTargetAssembly={x:Type ubcon:ResourceManager}}">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Image Source="{Binding Path=Image, NotifyOnSourceUpdated=True}" 
                   Height="32"
                   Width="32"
                   Margin="3"/>
            <TextBlock Text="{Binding Path=Title, NotifyOnSourceUpdated=True}"
                       Grid.Column="1"
                       Margin="2,1"
                       Foreground="White"
                       VerticalAlignment="Center"
                       FontSize="14"/>
        </Grid>
    </DataTemplate>
    
</ResourceDictionary>